//
//  UIBarButtonItem+FLMExtension.h
//  FLMSuperS
//
//  Created by xiaoyang on 16/9/6.
//  Copyright © 2016年 FaLaoMiaoNetworkTechnologyCo. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (FLMExtension)
/**
 *  创建一个item
 *
 *  @param target     点击item后调用哪个对象的方法
 *  @param action     点击item后调用target的哪个方法
 *  @param image      图片
 *  @param hightImage 高亮的图片
 *
 *  @return 创建完的item
 */
+ (UIBarButtonItem *)itemWithTarget:(id)target action:(SEL)action image:(NSString *)image hightImage:(NSString *)hightImage;


+ (UIBarButtonItem *)itemWithImage:(UIImage *)image highImage:(UIImage *)highImage target:(id)target action:(SEL)action;

+ (UIBarButtonItem *)itemWithImage:(UIImage *)image selectImage:(UIImage *)selectImage target:(id)target action:(SEL)action;


/**
 *  创建一个item标题
 *
 *  @param target     点击item后调用哪个对象的方法
 *  @param action     点击item后调用target的哪个方法
 *  @param title      标题
 *  @return 创建完的item
 */
+ (UIBarButtonItem *)itemWithTitle:(NSString *)title target:(id)target action:(SEL)action;


@end
